package com.book.workbench.mapper;

import com.book.workbench.pojo.Kind;

import java.util.List;

public interface KindMapper {

    //根据type查询类型
    public Kind getKindByType(Kind kind);

    //添加类型
    public Integer addKind(Kind kind);

    //查询类型
    public List<Kind> getListKinds(Kind kind);
    public Integer getCountListKind(Kind kind);

    //删除类型
    public Integer deleteKindById(Kind kind);

    //修改类型
    public Integer updateKindById(Kind kind);

    //根据id查询类型
    public Kind searchKindById(String id);

    public List<Kind> getAllListKind();

}
